package com.meida.module.bus.client.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.NoArgsConstructor;

/**
 * 服务订单状态
 *
 * @author jzy
 * @date 2021/7/2
 */
@NoArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ApiModel("订单状态")
public enum OrderStatusEnum implements IEnum<Integer> {
    waitPay(1, "待付款"),
    paid(2, "已付款"),
    refund(3, "已退款"),
    refunding(4, "申请退款中");

    @ApiModelProperty("值")
    private Integer value;
    @ApiModelProperty("描述")
    private String label;

    OrderStatusEnum(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
